Termination w.r.t. Q of the following Term Rewriting System could be proven:

Q restricted rewrite system:
The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.

Using Dependency Pairs [1,13] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

TERM_SUB2(Term_sub2(m, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_sub2(m, s), t) -> TERM_SUB2(m, Concat2(s, t))
TERM_SUB2(Case3(m, xi, n), s) -> FROZEN4(m, Sum_sub2(xi, s), n, s)
TERM_SUB2(Term_inl1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_var1(x), Cons_usual3(y, m, s)) -> TERM_SUB2(Term_var1(x), s)
CONCAT2(Cons_usual3(x, m, s), t) -> CONCAT2(s, t)
CONCAT2(Concat2(s, t), u) -> CONCAT2(s, Concat2(t, u))
CONCAT2(Cons_usual3(x, m, s), t) -> TERM_SUB2(m, t)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Case3(m, xi, n), s) -> SUM_SUB2(xi, s)
FROZEN4(m, Sum_constant1(Right), n, s) -> TERM_SUB2(n, s)
CONCAT2(Concat2(s, t), u) -> CONCAT2(t, u)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_constant1(Left), n, s) -> TERM_SUB2(m, s)
SUM_SUB2(xi, Cons_sum3(psi, k, s)) -> SUM_SUB2(xi, s)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(n, s)
SUM_SUB2(xi, Cons_usual3(y, m, s)) -> SUM_SUB2(xi, s)
TERM_SUB2(Term_var1(x), Cons_sum3(xi, k, s)) -> TERM_SUB2(Term_var1(x), s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(m, s)
CONCAT2(Cons_sum3(xi, k, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)

The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

TERM_SUB2(Term_sub2(m, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_sub2(m, s), t) -> TERM_SUB2(m, Concat2(s, t))
TERM_SUB2(Case3(m, xi, n), s) -> FROZEN4(m, Sum_sub2(xi, s), n, s)
TERM_SUB2(Term_inl1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_var1(x), Cons_usual3(y, m, s)) -> TERM_SUB2(Term_var1(x), s)
CONCAT2(Cons_usual3(x, m, s), t) -> CONCAT2(s, t)
CONCAT2(Concat2(s, t), u) -> CONCAT2(s, Concat2(t, u))
CONCAT2(Cons_usual3(x, m, s), t) -> TERM_SUB2(m, t)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Case3(m, xi, n), s) -> SUM_SUB2(xi, s)
FROZEN4(m, Sum_constant1(Right), n, s) -> TERM_SUB2(n, s)
CONCAT2(Concat2(s, t), u) -> CONCAT2(t, u)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_constant1(Left), n, s) -> TERM_SUB2(m, s)
SUM_SUB2(xi, Cons_sum3(psi, k, s)) -> SUM_SUB2(xi, s)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(n, s)
SUM_SUB2(xi, Cons_usual3(y, m, s)) -> SUM_SUB2(xi, s)
TERM_SUB2(Term_var1(x), Cons_sum3(xi, k, s)) -> TERM_SUB2(Term_var1(x), s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(m, s)
CONCAT2(Cons_sum3(xi, k, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)

The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 3 SCCs with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

SUM_SUB2(xi, Cons_sum3(psi, k, s)) -> SUM_SUB2(xi, s)
SUM_SUB2(xi, Cons_usual3(y, m, s)) -> SUM_SUB2(xi, s)

The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


SUM_SUB2(xi, Cons_sum3(psi, k, s)) -> SUM_SUB2(xi, s)
SUM_SUB2(xi, Cons_usual3(y, m, s)) -> SUM_SUB2(xi, s)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Polynomial Order [17,21] with Interpretation:

POL( SUM_SUB2(x1, x2) ) = max{0, 3x1 + 2x2 - 2}


POL( Cons_sum3(x1, ..., x3) ) = 3x1 + 3x2 + 3x3 + 3


POL( Cons_usual3(x1, ..., x3) ) = 2x2 + x3 + 3



The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TERM_SUB2(Term_var1(x), Cons_usual3(y, m, s)) -> TERM_SUB2(Term_var1(x), s)
TERM_SUB2(Term_var1(x), Cons_sum3(xi, k, s)) -> TERM_SUB2(Term_var1(x), s)

The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


TERM_SUB2(Term_var1(x), Cons_usual3(y, m, s)) -> TERM_SUB2(Term_var1(x), s)
TERM_SUB2(Term_var1(x), Cons_sum3(xi, k, s)) -> TERM_SUB2(Term_var1(x), s)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Polynomial Order [17,21] with Interpretation:

POL( Term_var1(x1) ) = 3


POL( TERM_SUB2(x1, x2) ) = 2x1 + x2 + 3


POL( Cons_usual3(x1, ..., x3) ) = x1 + 3x2 + 2x3 + 3


POL( Cons_sum3(x1, ..., x3) ) = 3x1 + 3x2 + 2x3 + 3



The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ PisEmptyProof
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TERM_SUB2(Term_sub2(m, s), t) -> CONCAT2(s, t)
TERM_SUB2(Case3(m, xi, n), s) -> FROZEN4(m, Sum_sub2(xi, s), n, s)
TERM_SUB2(Term_inl1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_sub2(m, s), t) -> TERM_SUB2(m, Concat2(s, t))
CONCAT2(Cons_usual3(x, m, s), t) -> CONCAT2(s, t)
CONCAT2(Concat2(s, t), u) -> CONCAT2(s, Concat2(t, u))
CONCAT2(Cons_usual3(x, m, s), t) -> TERM_SUB2(m, t)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(n, s)
FROZEN4(m, Sum_constant1(Right), n, s) -> TERM_SUB2(n, s)
CONCAT2(Concat2(s, t), u) -> CONCAT2(t, u)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_constant1(Left), n, s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(n, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(m, s)
CONCAT2(Cons_sum3(xi, k, s), t) -> CONCAT2(s, t)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)

The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


TERM_SUB2(Term_sub2(m, s), t) -> CONCAT2(s, t)
TERM_SUB2(Case3(m, xi, n), s) -> FROZEN4(m, Sum_sub2(xi, s), n, s)
TERM_SUB2(Term_inl1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_sub2(m, s), t) -> TERM_SUB2(m, Concat2(s, t))
CONCAT2(Cons_usual3(x, m, s), t) -> CONCAT2(s, t)
CONCAT2(Concat2(s, t), u) -> CONCAT2(s, Concat2(t, u))
CONCAT2(Cons_usual3(x, m, s), t) -> TERM_SUB2(m, t)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(n, s)
CONCAT2(Concat2(s, t), u) -> CONCAT2(t, u)
TERM_SUB2(Term_app2(m, n), s) -> TERM_SUB2(m, s)
CONCAT2(Cons_sum3(xi, k, s), t) -> CONCAT2(s, t)
The remaining pairs can at least be oriented weakly.

FROZEN4(m, Sum_constant1(Right), n, s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_constant1(Left), n, s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(n, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)
Used ordering: Polynomial Order [17,21] with Interpretation:

POL( FROZEN4(x1, ..., x4) ) = 3x1 + 3x3


POL( Term_inr1(x1) ) = x1 + 1


POL( Term_app2(x1, x2) ) = 3x1 + 3x2 + 3


POL( Case3(x1, ..., x3) ) = 3x1 + 3x2 + 3x3 + 3


POL( Right ) = 3


POL( Concat2(x1, x2) ) = x1 + x2 + 2


POL( Id ) = 3


POL( Frozen4(x1, ..., x4) ) = 3x1 + 3x3 + 3x4


POL( Term_inl1(x1) ) = 3x1 + 3


POL( Cons_usual3(x1, ..., x3) ) = 3x1 + 2x2 + 3x3 + 1


POL( Term_pair2(x1, x2) ) = 3x1 + 3x2 + 1


POL( Sum_term_var1(x1) ) = max{0, 3x1 - 3}


POL( Sum_constant1(x1) ) = max{0, 2x1 - 2}


POL( Sum_sub2(x1, x2) ) = 3x1


POL( CONCAT2(x1, x2) ) = x1 + 2


POL( Term_var1(x1) ) = 2x1


POL( Left ) = 3


POL( TERM_SUB2(x1, x2) ) = max{0, 2x1 - 2}


POL( Cons_sum3(x1, ..., x3) ) = 2x1 + 2x2 + 2x3 + 2


POL( Term_sub2(x1, x2) ) = 2x1 + 2x2 + 3



The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
FROZEN4(m, Sum_constant1(Left), n, s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(n, s)
FROZEN4(m, Sum_term_var1(xi), n, s) -> TERM_SUB2(m, s)
FROZEN4(m, Sum_constant1(Right), n, s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)

The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 1 SCC with 4 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ DependencyGraphProof
QDP
                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)

The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


TERM_SUB2(Term_inr1(m), s) -> TERM_SUB2(m, s)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(n, s)
TERM_SUB2(Term_pair2(m, n), s) -> TERM_SUB2(m, s)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Polynomial Order [17,21] with Interpretation:

POL( Term_inr1(x1) ) = 2x1 + 1


POL( TERM_SUB2(x1, x2) ) = x1 + 2x2 + 2


POL( Term_pair2(x1, x2) ) = 2x1 + 2x2 + 3



The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ DependencyGraphProof
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ PisEmptyProof

Q DP problem:
P is empty.
The TRS R consists of the following rules:

Term_sub2(Case3(m, xi, n), s) -> Frozen4(m, Sum_sub2(xi, s), n, s)
Frozen4(m, Sum_constant1(Left), n, s) -> Term_sub2(m, s)
Frozen4(m, Sum_constant1(Right), n, s) -> Term_sub2(n, s)
Frozen4(m, Sum_term_var1(xi), n, s) -> Case3(Term_sub2(m, s), xi, Term_sub2(n, s))
Term_sub2(Term_app2(m, n), s) -> Term_app2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_pair2(m, n), s) -> Term_pair2(Term_sub2(m, s), Term_sub2(n, s))
Term_sub2(Term_inl1(m), s) -> Term_inl1(Term_sub2(m, s))
Term_sub2(Term_inr1(m), s) -> Term_inr1(Term_sub2(m, s))
Term_sub2(Term_var1(x), Id) -> Term_var1(x)
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> m
Term_sub2(Term_var1(x), Cons_usual3(y, m, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_var1(x), Cons_sum3(xi, k, s)) -> Term_sub2(Term_var1(x), s)
Term_sub2(Term_sub2(m, s), t) -> Term_sub2(m, Concat2(s, t))
Sum_sub2(xi, Id) -> Sum_term_var1(xi)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_constant1(k)
Sum_sub2(xi, Cons_sum3(psi, k, s)) -> Sum_sub2(xi, s)
Sum_sub2(xi, Cons_usual3(y, m, s)) -> Sum_sub2(xi, s)
Concat2(Concat2(s, t), u) -> Concat2(s, Concat2(t, u))
Concat2(Cons_usual3(x, m, s), t) -> Cons_usual3(x, Term_sub2(m, t), Concat2(s, t))
Concat2(Cons_sum3(xi, k, s), t) -> Cons_sum3(xi, k, Concat2(s, t))
Concat2(Id, s) -> s

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.